package com.study.行为型模式.备忘录模式.实例2;


public class Memento {
    private int attack;  //攻击力
    private int def;    //防御力

    public Memento(int attack, int def) {
        this.attack = attack;
        this.def = def;
    }

    public int getAttack() {
        return attack;
    }

    public void setAttack(int attack) {
        this.attack = attack;
    }

    public int getDef() {
        return def;
    }

    public void setDef(int def) {
        this.def = def;
    }
}
